package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.TypePart;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【type_part(备件类型)】的数据库操作Service
 * @createDate 2024-11-25 09:23:39
 */
public interface TypePartService extends IService<TypePart> {

    /*
    查询所有父级
     */
    List<TypePart> SelectAllTypePart(TypePart typePart);

    /*
    查询所有子级
     */
    List<TypePart> SelectAllTypePartByParentId(TypePart typePart);

    /*
    新增备件类型
     */
    Boolean InsertTypePart(TypePart typePart);

    /*
    修改/删除备件类型
     */
    Boolean UpdateTypePart(List<TypePart> typePart);
}
